<?php foreach ($modules as $module) { ?>
    <?php echo $module; ?>
<?php } ?>